<?php

namespace Kunfeng\Dify\Event;

/**
 * Agent日志事件
 */
class AgentLogEvent extends BaseEvent
{
    private $log;
    private $messageId;
    private $conversationId;

    public function __construct(
        string $event,
        array $data = []
    ) {
        parent::__construct($event, $data);
        
        $this->log = $data['log'] ?? '';
        $this->messageId = $data['message_id'] ?? '';
        $this->conversationId = $data['conversation_id'] ?? '';
    }

    public function getLog(): string
    {
        return $this->log;
    }

    public function getMessageId(): string
    {
        return $this->messageId;
    }

    public function getConversationId(): string
    {
        return $this->conversationId;
    }
}
